package com.haoshuang.zhouzhoubang.ui.page.data.rank

import com.haoshuang.zhouzhoubang.databinding.ItemRankBinding
import com.haoshuang.zhouzhoubang.model.bean.DataRankBean
import com.mufeng.libs.base.BaseBindingHolder
import com.mufeng.libs.base.BaseBindingQuickAdapter
import com.mufeng.libs.utils.view.load


/**
 * 
 */
class RankAdapter(data: MutableList<DataRankBean>) : BaseBindingQuickAdapter<DataRankBean, ItemRankBinding>(data) {
    override fun onBindViewHolder(holder: BaseBindingHolder, position: Int, item: DataRankBean?) {
        holder.getViewBinding<ItemRankBinding>().apply {
            if (item == null) return@apply
            rivHead.load(item.avatar)
            tvName.text = item.user_name
            tvPhone.text = item.phone
            tvValue.text = item.sum
        }
    }

}